package com.lovo.middleman.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lovo.middleman.bean.SellDetailedBean;
import com.lovo.middleman.mapper.SellDetailedMapper;
import com.lovo.middleman.service.ISellDetailedService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SellDetailedServiceImpl extends ServiceImpl<SellDetailedMapper, SellDetailedBean> implements ISellDetailedService {

    @Autowired
    SellDetailedMapper sellDetailedMapper;

    @Override
    public List<SellDetailedBean> queryBySellId(int sellId) {
        QueryWrapper<SellDetailedBean> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("sell_id",sellId);
        return sellDetailedMapper.selectList(queryWrapper);
    }
}
